/* Arquivo gerado automaticamente por ledc 2.4         */

#include <stdarg.h>
#include <iup.h>

static Ihandle* named[      1 ];

static Ihandle* decl( char* name, Ihandle* elem, char* first, ...)
{
  char *attr, *val;
  va_list arg;
  va_start (arg, first);
  attr = first;
  while (attr)
  {
    val = va_arg(arg,char*);
    IupSetAttribute( elem, attr, val );
    attr = va_arg(arg,char*);
  }
  va_end (arg);
  if(name) IupSetHandle( name, elem );
  return elem;
}

static void icon_lib_configure (void)
{
  char map[] = {
     4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 
     4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 
     4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 
     4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 
     4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 
     4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 6, 6, 6, 3, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 
     4, 4, 4, 4, 4, 4, 1, 1, 4, 4, 2, 2, 2, 2, 2, 0, 4, 4, 2, 2, 4, 4, 4, 4, 4, 4, 
     4, 4, 4, 4, 4, 1, 5, 6, 0, 0, 2, 6, 3, 2, 2, 0, 0, 0, 5, 6, 0, 4, 4, 4, 4, 4, 
     4, 4, 4, 4, 4, 1, 6, 5, 6, 1, 2, 6, 3, 2, 2, 0, 1, 5, 6, 5, 0, 4, 4, 4, 4, 4, 
     4, 4, 4, 4, 4, 0, 1, 6, 5, 6, 2, 6, 3, 2, 2, 0, 5,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, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 
     4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 
     4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 
     4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 
  -1 };

  decl( "icon_lib_configure", IupImage( 26, 26, map ), 
    "0", "0 0 0", 
    "1", "132 132 0", 
    "2", "132 132 132", 
    "3", "198 198 198", 
    "4", "BGCOLOR", 
    "5", "255 255 0", 
    "6", "255 255 255", 0 );

  decl( "icon_lib_configure_inactive", IupImage( 26, 26, map ), 
    "0", "96 96 96", 
    "1", "96 96 96", 
    "2", "132 132 132", 
    "3", "198 198 198", 
    "4", "BGCOLOR", 
    "5", "192 192 192", 
    "6", "192 192 192", 0 );
}

static void icon_lib_capture (void)
{
  char map[] = {
    11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,
    11,11,11,11,11,11,11,11,11,11,11, 4, 4, 4,11,11,11,11,11,11,11,11,11,11,11,11,
    11,11,11,11,11,11,11,11, 4,14,14,12,10,10,13,12, 7, 7,11,11,11,11,11,11,11,11,
    11,11,11,11,11,11, 4, 7,10,12,12,12, 1, 1,13, 6, 2, 2, 1,12,11,11,11,11,11,11,
    11,11,11,11,11,14, 7,13, 7,12, 1,13,13, 6, 6,10,10,10, 2, 6, 1,11,11,11,11,11,
    11,11,11,11,14, 1, 1,12, 1,13,10,10, 2,16,16,16, 2, 2,16,16, 8,13,11,11,11,11,
    11,11,11,14,12,12,12, 1,10, 2,16,15,15, 8,15,15,15,15,15,15,15, 2,13,11,11,11,
    11,11,11,12, 6, 1,13,10,16,15, 8, 8, 8, 8, 8, 8, 8,15,15,15, 8, 8,10,11,11,11,
    11,11, 7, 1, 1,13,10,15,15,15, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,19,19, 6,11,11,
    11,11,12,13,13, 6,16,15, 8,16, 4, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 3,10,11,11,
    11,11, 1,13, 6, 2,15, 8, 8,16, 5, 5, 5,16,15, 8, 8, 8, 8, 8, 8,19, 3, 2,11,11,
    11,13, 1,10,10,15,15, 8, 8,16, 5, 5, 5, 5,14, 1, 8, 8, 8, 8, 8,19, 3, 9,11,11,
    11,12,16,10, 2,15, 8, 8, 8,16, 5, 5, 5, 5, 5, 5, 5, 2,15, 8, 8,19, 3, 9,10,11,
    11, 1,16, 2,16,15, 8, 8, 8,16, 5, 5, 5, 5, 5, 5, 5, 5, 4,13, 8,19, 3,18,10,11,
    11, 1,10,15,15,15, 8, 8, 8,16, 5, 5, 5, 5, 5, 5, 5,14,15, 8, 8, 3, 9, 9,10,11,
    11,11, 6,15,15,15, 8, 8, 8,16, 5, 5, 5, 5, 5, 4, 2, 8, 8, 8, 8, 3, 9,15,11,11,
    11,11,10, 8, 8, 8, 8, 8, 8,16, 5, 5, 5,14,15, 8, 8, 8, 8, 8,19, 9, 0,15,11,11,
    11,11,13, 8,19, 8, 8, 8, 8,16, 5,17,16, 8, 8, 8, 8, 8, 8,19, 3, 9, 0, 2,11,11,
    11,11,11,10,19, 8, 8, 8, 8,15,16, 8, 8, 8, 8, 8, 8, 8, 8,19, 9, 0,15,11,11,11,
    11,11,11, 6,16,19,19,19, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,19, 9,18, 8,10,11,11,11,
    11,11,11,11, 2, 9, 3, 3,19,19, 8, 8, 8, 8, 8, 8,19, 3, 9, 0, 0, 2,11,11,11,11,
    11,11,11,11,11, 2,15, 9, 9, 3, 3, 3,19, 3, 3, 3, 9,18, 0, 8, 2,11,11,11,11,11,
    11,11,11,11,11,11, 2,15,18, 9, 9, 9, 9, 9, 9,18, 0, 0,15,10,11,11,11,11,11,11,
    11,11,11,11,11,11,11,11,16,15, 8, 9, 9, 9, 8,15,15,16,11,11,11,11,11,11,11,11,
    11,11,11,11,11,11,11,11,11,11,11, 2, 2,16,11,11,11,11,11,11,11,11,11,11,11,11,
    11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,
  -1 };

  decl( "icon_lib_capture", IupImage( 26, 26, map ), 
    "0", "120 18 25", 
    "1", "242 146 153", 
    "2", "232 83 94", 
    "3", "184 26 36", 
    "4", "251 203 207", 
    "5", "255 255 255", 
    "6", "236 115 123", 
    "7", "244 175 179", 
    "8", "221 31 45", 
    "9", "157 23 32", 
    "10", "236 101 110", 
    "11", "BGCOLOR", 
    "12", "244 160 168", 
    "13", "236 129 136", 
    "14", "244 190 194", 
    "15", "228 45 57", 
    "16", "228 72 82", 
    "17", "252 214 212", 
    "18", "136 20 28", 
    "19", "200 29 42", 0 );

  decl( "icon_lib_capture_inactive", IupImage( 26, 26, map ), 
    "0", "96 96 96", 
    "1", "96 96 96", 
    "2", "96 96 96", 
    "3", "96 96 96", 
    "4", "96 96 96", 
    "5", "192 192 192", 
    "6", "96 96 96", 
    "7", "96 96 96", 
    "8", "96 96 96", 
    "9", "96 96 96", 
    "10", "96 96 96", 
    "11", "BGCOLOR", 
    "12", "96 96 96", 
    "13", "96 96 96", 
    "14", "96 96 96", 
    "15", "96 96 96", 
    "16", "96 96 96", 
    "17", "96 96 96", 
    "18", "96 96 96", 
    "19", "96 96 96", 0 );
}

static void icon_lib_connect (void)
{
  char map[] = {
     6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
     6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
     6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6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, 4, 4, 4, 0, 3, 3, 0, 3, 0, 4, 4, 4, 0, 6,
     0, 7, 4, 5, 5, 2, 2, 1, 1, 7, 4, 4, 4, 4, 4, 0, 0, 0, 0, 3, 0, 3, 4, 4, 0, 6,
     0, 7, 4, 5, 5, 2, 2, 1, 1, 3, 3, 3, 3, 3, 3, 0, 6, 6, 6, 0, 0, 3, 3, 3, 0, 6,
     0, 7, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 0, 0, 0, 0, 0, 6, 6, 6, 0, 3, 3, 0, 6,
     0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 7, 7, 7, 7, 3, 0, 6, 6, 6, 0, 0, 0, 6,
     6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 4, 4, 4, 3, 0, 6, 6, 6, 6, 6, 6, 6,
     6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 0, 3, 3, 3, 3, 0, 6, 6, 6, 6, 6, 6, 6,
     6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 0, 0, 0, 0, 6, 6, 6, 6, 6, 6, 6, 6,
     6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
     6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
     6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
  -1 };

  decl( "icon_lib_connect", IupImage( 26, 26, map ), 
    "0", "0 0 0", 
    "1", "0 0 255", 
    "2", "0 255 0", 
    "3", "128 128 128", 
    "4", "192 192 192", 
    "5", "255 0 0", 
    "7", "255 255 255", 
    "6", "BGCOLOR", 0 );
}
static void icon_lib_open (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0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0, 0,
     0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_open", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "000 000 000", 
    "2", "255 255 000", 
    "3", "255 255 255", 
    "4", "128 128 128", 
    "5", "132 132 000", 0 );
}

static void icon_lib_print (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0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0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_print", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "074 074 074", 
    "2", "214 214 214", 
    "3", "255 255 255", 
    "4", "255 255 074", 
    "5", "165 165 165", 0 );
}

static void icon_lib_preview (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 1, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 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 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_preview", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "074 074 074", 
    "2", "255 255 255", 
    "3", "165 165 165", 
    "4", "214 214 214", 
    "5", "074 255 255", 0 );
}

static void icon_lib_search (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 1, 2, 1, 1, 1, 0, 1, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 2, 1, 1, 1, 0, 0, 0, 0, 0, 1, 2, 1, 1, 1, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 2, 1, 1, 1, 0, 0, 0, 0, 0, 1, 2, 1, 1, 1, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_search", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "000 000 000", 
    "2", "255 255 255", 0 );
}

static void icon_lib_new (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     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 2, 1, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_new", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "000 000 000", 
    "2", "255 255 255", 0 );
}

static void icon_lib_cut (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_cut", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "000 000 132", 
    "2", "000 000 000", 0 );
}

static void icon_lib_undo (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_undo", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "000 000 000", 0 );
}

static void icon_lib_redo (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0,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, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_redo", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "000 000 000", 0 );
}

static void icon_lib_copy (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_copy", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "000 000 000", 
    "2", "255 255 255", 
    "3", "000 000 132", 0 );
}

static void icon_lib_paste (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 4, 4, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 3, 2, 3, 1, 4, 1, 1, 4, 1, 2, 3, 2, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 2, 3, 1, 3, 3, 3, 3, 3, 3, 1, 2, 3, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 3, 2, 3, 2, 3, 5, 5, 5, 5, 5, 5, 5, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 2, 3, 2, 3, 2, 5, 6, 6, 6, 6, 6, 5, 5, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 3, 2, 3, 2, 3, 5, 6, 6, 6, 6, 6, 5, 6, 5, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 2, 3, 2, 3, 2, 5, 6, 5, 5, 5, 6, 5, 5, 5, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 3, 2, 3, 2, 3, 5, 6, 6, 6, 6, 6, 6, 6, 5, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 2, 3, 2, 3, 2, 5, 6, 5, 5, 5, 5, 5, 6, 5, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 5, 6, 6, 6, 6, 6, 6, 6, 5, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_paste", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "000 000 000", 
    "2", "132 132 000", 
    "3", "206 206 206", 
    "4", "255 255 000", 
    "5", "000 000 132", 
    "6", "255 255 255", 0 );
}

static void icon_lib_help (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 2, 2, 2, 4, 2, 2, 2, 4, 2, 2, 2, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 2, 4, 2, 2, 2, 4, 2, 2, 2, 4, 2, 1, 3, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 2, 2, 2, 6, 5, 5, 5, 5, 6, 2, 2, 1, 3, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 2, 4, 2, 5, 5, 4, 6, 5, 5, 4, 2, 1, 3, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 2, 2, 2, 5, 3, 2, 2, 5, 5, 2, 2, 1, 3, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 2, 4, 2, 2, 2, 4, 3, 5, 3, 4, 2, 1, 3, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 2, 2, 2, 4, 2, 3, 5, 6, 2, 2, 2, 1, 3, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 2, 4, 2, 2, 2, 5, 3, 2, 2, 4, 2, 1, 3, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 2, 2, 2, 4, 2, 2, 2, 4, 2, 2, 2, 1, 3, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 2, 4, 2, 2, 2, 5, 5, 2, 2, 4, 2, 1, 3, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 1, 2, 2, 2, 4, 2, 4, 2, 4, 2, 2, 2, 1, 3, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 3, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 1, 4, 1, 3, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_help", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "074 074 074", 
    "2", "255 255 255", 
    "3", "165 165 165", 
    "4", "255 255 074", 
    "5", "074 074 165", 
    "6", "214 214 214", 0 );
}

static void icon_lib_zoom_in (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_zoom_in", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "206 206 206", 
    "2", "000 000 000", 0 );
}

static void icon_lib_zoom_out (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 2, 2, 1, 1, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 2, 1, 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 2, 1, 1,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, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_zoom_out", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "206 206 206", 
    "2", "000 000 000", 0 );
}

static void icon_lib_capture1 (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 3, 3, 3, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 1, 2, 1, 2, 3, 1, 1, 3, 2, 1, 1, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 1, 1, 3, 1, 1, 3, 3, 3, 3, 2, 1, 2, 2, 1, 0, 0, 0, 0,
     0, 0, 0, 1, 2, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0,
     0, 0, 0, 1, 2, 2, 1, 1, 2, 2, 1, 1, 1, 3, 3, 1, 2, 3, 1, 0, 0, 0, 0,
     0, 0, 0, 1, 1, 1, 2, 3, 3, 3, 2, 1, 3, 3, 3, 3, 1, 2, 1, 0, 0, 0, 0,
     0, 0, 0, 1, 1, 1, 2, 3, 2, 1, 1, 3, 3, 2, 1, 2, 3, 2, 1, 0, 0, 0, 0,
     0, 0, 0, 1, 1, 1, 2, 3, 1, 1, 1, 3, 2, 1, 3, 1, 3, 2, 1, 0, 0, 0, 0,
     0, 0, 0, 1, 1, 1, 2, 3, 1, 1, 1, 3, 2, 1, 4, 1, 2, 2, 1, 0, 0, 0, 0,
     0, 0, 0, 1, 1, 1, 2, 3, 3, 1, 1, 3, 2, 2, 2, 3, 2, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_capture", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "000 000 000", 
    "2", "132 132 132", 
    "3", "255 255 255", 
    "4", "000 000 132", 0 );
}

static void icon_lib_transfer (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 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, 3, 1, 2, 1,11, 1,13,13,13,13, 1, 1,13,13, 1, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,13,13,13, 1,13,13, 1, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,14,13,13,13,13, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,11, 1, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_transfer", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "000 000 000", 
    "2", "020 016 000", 
    "3", "000 000 008", 
    "4", "247 255 247", 
    "5", "204 204 204", 
    "6", "247 247 255", 
    "7", "239 239 247", 
    "8", "247 255 239", 
    "9", "000 000 123", 
    "10", "136 135 175", 
    "11", "000 008 008", 
    "12", "016 004 012", 
    "13", "255 255 000", 
    "14", "008 000 000", 
    "15", "239 247 243", 0 );
}

static void icon_lib_freeze (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_freeze", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "153 150 158", 
    "2", "127 062 032", 
    "3", "255 239 239", 
    "4", "241 239 209", 
    "5", "129 139 079", 
    "6", "004 000 000", 
    "7", "187 164 039", 
    "8", "255 255 148", 
    "9", "253 244 188", 
    "10", "017 009 000", 
    "11", "255 255 214", 
    "12", "255 206 008", 
    "13", "255 189 008", 
    "14", "002 006 008", 
    "15", "255 255 222", 0 );
}

static void icon_lib_save (void)
{
  char map[] = {
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 2, 1, 3, 3, 3, 3, 3, 3, 3, 3, 1, 3, 1, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 1, 2, 1, 3, 3, 3, 3, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
     0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  -1 };

  decl( "icon_lib_save", IupImage( 23, 23, map ), 
    "ORIGIN", "EdPatt", 
    "0", "BGCOLOR", 
    "1", "074 074 074", 
    "2", "234 234 142", 
    "3", "255 255 255", 0 );
}


void IconLibOpen(void)
{
  /* files and projects */
  icon_lib_new ();
  icon_lib_open ();
  icon_lib_save ();

  /* camera */
  icon_lib_connect ();
  icon_lib_capture ();
  icon_lib_capture1 ();
  icon_lib_configure ();
  icon_lib_transfer ();
  icon_lib_freeze ();

  /* print */
  icon_lib_print ();
  icon_lib_preview ();

  /* undo  */
  icon_lib_undo ();
  icon_lib_redo ();

  /* cut, copy and paste */
  icon_lib_cut ();
  icon_lib_copy ();
  icon_lib_paste ();
  
  /* zoom */
  icon_lib_zoom_in ();
  icon_lib_zoom_out ();

  /* serach */
  icon_lib_search ();
  icon_lib_help ();
}
